<?php
/**
 * Timfan design模块处理程序
 *
 * @author Tim Fan
 * QQ:1026073477
 * @url http://i-fanr.com/
 */
defined('IN_IA') or exit('Access Denied');

class Tim_quizModuleProcessor extends WeModuleProcessor {
	public function respond() {
		$content = $this->message['content'];
		//这里定义此模块进行消息处理时的具体过程, 请查看微擎文档来编写你的代码
		global $_W,$_GPC;
		$uniacid = $_W['uniacid'];
		$all = pdo_fetchall("SELECT * FROM ".tablename('tim_quiz')." WHERE uniacid=$uniacid ORDER BY qid ASC");
		$str="";
		foreach ($all as $key => $value) {
			$str=$str.$value['correct_ans'];
		}
		return $this->respText($str);
		
	}
    
}